<p{if isset($attributes.class)} class="{$attributes.class}"{/if}>
    <label for="{$attributes.name}">{$attributes.label}</label>
    <input type="text" {if isset($attributes.class)} class="{$attributes.class}"{/if} id="{$attributes.name}" name="{$formName}[{$attributes.name}]" {if isset($value)}value="{$value}"{/if} />
    {if isset($error)}
    <span class="form-error">{$error}</span>
    {/if}
    {if isset($attributes.guideline)}
    <span class="form-guideline">{$attributes.guideline}</span>
    {/if}
</p>